package org.spolo.android.support.tween;

import org.spolo.android.support.nodetree.Vcanvas;

public abstract class InterpolateBase {
	protected Vcanvas Target;
	protected boolean isFinish;
	protected int changeType;

	protected long startTick;
	private InterpolateManager im = InterpolateManager.getInstance();

	InterpolateBase(Vcanvas v, int type) {
		this.changeType = type;
		this.Target = v;
	}

	public abstract void stepIt(long tick);

	public void start() {
		im.AddInterpolate(this);
		this.startTick = System.currentTimeMillis();
	}

	/**
	 * 判断当前的操作是否结束;
	 * 
	 * @return
	 */
	public boolean isFinish() {
		return isFinish;
	}

}